fillParent

abstract fun fillParent(block: DesignBlock)

Resize and position a block to entirely fill its parent block. The crop values of the block, except for the flip and crop rotation, are reset if it can be cropped. If the size of the block's fill is unknown, the content fill mode is changed from Crop to Cover to prevent invalid crop values. Required scope: "layer/move"

  • "layer/resize"

Parameters

block

The block that should fill its parent.